// import variables from '@/styles/element-variables.scss'
// import defaultSettings from '@/settings'
// const { showSettings, tagsView, fixedHeader, sidebarLogo } = defaultSettings
// import { commonPromise } from '../../api/index.js'
// import apiFetch from '../../api/apiFetch.js'
const state = {
  platformList: [] // 平台列表
}

const mutations = {
  SET_PLATFORM_LIST: (state, list) => {
    console.log('SET_PLATFORM_LIST')
    // state.platformList = list
  }
}

const actions = {
  // 获取平台列表
  getPlatformList ({ commit }, data) {
    // console.log(apiFetch.platformDataList)
    commit('SET_PLATFORM_LIST', data)
    const params = { 'pageNo': 1, 'pageSize': 100 }
    /*
    apiFetch.platformDataList(params).then((res) => {
      console.log(res)
      } else {
        console.log('goodsPageList - 失败', type)
      }
    }).catch((err) => {
      console.log(err)
    })
*/
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

